package com.example.robertluozizhao.framecollectdemo.fragment;

import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.robertluozizhao.framecollectdemo.R;

/**
 * Created by robert.luozizhao on 2018/3/5.
 */

public class AnimationTestFragment01 extends Fragment {



    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
      /*  LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
        LinearLayout linearLayout = new LinearLayout(getActivity());
        linearLayout.setLayoutParams(params);

        TextView textView = new TextView(getActivity());
        textView.setText("one");
        textView.setGravity(TextView.TEXT_ALIGNMENT_CENTER);
        textView.setLayoutParams(params);

        linearLayout.addView(textView);

        return linearLayout;*/



      /*  TextView textView = new TextView(getActivity());
        textView.setText("one");
        textView.setTextColor(Color.BLACK);
        textView.setGravity(Gravity.CENTER);
        return textView;*/


      return LayoutInflater.from(getActivity()).inflate(R.layout.item_indicate_layout,null);
    }


}
